package com.wat.service.Impl;

import com.wat.domain.User;
import com.wat.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

	public UserServiceImpl(){
		System.out.println("-------- UserServiceImpl (普通类)构造方法 --------------");
	}

	private static User user = null;

	@Override
	public User createUser(String name) {
		user = new User();
		user.setName(name);
		return user;
	}

	@Override
	public User queryUser() {
		return user;
	}
}
